package star.crust.cartspace.framework;

import java.util.Iterator;



public class CrtVerticesIterator implements Iterator<CrtMeshVertex> {
	private CrtMeshVertex vertices[] = null;
	private int index = 0;
	
	protected CrtVerticesIterator(CrtMeshVertex vertices[]) {
		this.vertices = vertices;
	}
//	@Override
	public boolean hasNext() {
		if(index == vertices.length)
			return false;
		return true;
	}

//	@Override
	public CrtMeshVertex next() {
		if(index == vertices.length)
			return null;
		index++;
		return vertices[index-1];
	}

//	@Override
	public void remove() {
		// TODO Auto-generated method stub
		
	}
}
